﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace PROSHOP
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IProshopService
    {


        #region Tung DAL

        //Binh luan

        [OperationContract]
        bool themBinhLuan(int maSP, int maKH, String noiDung, DateTime ngayBL);

        [OperationContract]
        DataSet danhSachBinhLuan();

        [OperationContract]
        bool suaBinhLuan(int maBL, String noiDung);

        //San pham

        [OperationContract]
        DataSet dsSanPham(int chungloai, int loaihang, string namelike, int nsx, string sapxep, decimal minprice, decimal maxprice);

        [OperationContract]
        DataSet ctSanPham(int masp);

        // Loai hang

        [OperationContract]
        DataSet dsLoaiHang(int maCL);

        [OperationContract]
        DataSet ctLoaiHang(int lh);

        //Hinh thuc giao hang

        [OperationContract]
        DataSet dsHinhThucGH();

        // Hinh thuc thanh toan

        [OperationContract]
        DataSet dsHinhThucTT();

        //Khach Hang

        [OperationContract]
        DataSet getThongTinKH(int makh);

        [OperationContract]
        bool updateThongTinKH(int makh, string pw, string hoten, bool gioitinh, string email, string diachi, string dienthoai, string cauhoi, string traloi, bool status);

        [OperationContract]
        bool themKH(string tendn, string pw, string hoten, bool gioitinh, string email, string diachi, string dienthoai, string cauhoi, string traloi, bool status);

        // Chung loai hang
        [OperationContract]
        DataSet ctChungLoai(int maCL);

        // chi tiet don dat hang
        [OperationContract]
        DataSet dsDDH(int makh);
        #endregion

        // TODO: Add your service operations here
    }

}
